﻿<%@ Page Title="" Language="C#" MasterPageFile="~/mypage/MypageMasterPage.master" AutoEventWireup="true" CodeBehind="card_enroll.aspx.cs" Inherits="Com.Web.coffinegurunaru.mypage.card_enroll" %>
<%@ Register TagPrefix="UC" TagName="Paging" Src="~/aboutus/usercontrol/paging.ascx" %>
<%@ Import Namespace="Com.Library.DB.UserCard" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="33">&nbsp;</td>
          </tr>
          <tr>
            <td><img src="/images/mypage/tit_02.gif" width="369" height="48"></td>
          </tr>
          <tr>
            <td height="30">&nbsp;</td>
          </tr>
          <tr>
            <td align="center"><table width="98%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td align="center"><img src="/images/mypage/txt11.gif" width="262" height="12"></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td align="center"><table width="88%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="15"><img src="/images/mypage/table_tl.gif" width="15" height="15"></td>
                    <td bgcolor="#eeebe4"><img src="/images/common/clear.gif" width="1" height="1"></td>
                    <td width="15"><img src="/images/mypage/table_tr.gif" width="15" height="15"></td>
                    </tr>
                  <tr bgcolor="#eeebe4">
                    <td><img src="/images/common/clear.gif" width="1" height="1"></td>
                    <td height="35" align="center" class="big_purple"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td height="35" align="center"><img src="/images/mypage/txt12.gif" width="78" height="17"></td>
                        <td>&nbsp;</td>
                        </tr>
                      <tr>
                        <td align="center"><span style="padding-left:10">
                           <input type='text' name='CardNo1' maxlength='6' size='15' value='' id="d_CardNo1">
                          </span></td>
                        <td>&nbsp;</td>
                        </tr>
                      <tr>
                        <td height="50" align="center"><a href="#" id="d_btnConfirm"><img src="/images/mypage/txt13.gif" width="69" height="22"></a></td>
                        <td>&nbsp;</td>
                        </tr>
                      </table></td>
                    <td><img src="/images/common/clear.gif" width="1" height="1"></td>
                    </tr>
                  <tr>
                    <td><img src="/images/mypage/table_bl.gif" width="15" height="15"></td>
                    <td bgcolor="#eeebe4"><img src="/images/common/clear.gif" width="1" height="1"></td>
                    <td><img src="/images/mypage/table_br.gif" width="15" height="15"></td>
                   </tr>
                  </table></td>
              </tr>
              </table>
<script language="javascript">
(function($){
	$(function() {
		$("#d_btnConfirm").click(function() {
			var cardNo1 = $.trim( $("#d_CardNo1").val() );
			
			if ( cardNo1.length < 6 || !$.Coffine.isNumber(cardNo1) ) {
				alert( "카드 번호가 잘못되었습니다.");
				return false;
			}

			$("form:eq(0)").submit();
		});
	});
})(jQuery);
</script>
              <table width="98%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="50">&nbsp;</td>
                </tr>
                <tr>
                  <td><img src="/images/mypage/txt22.gif" width="71" height="19"></td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                </tr>
            </table>
              <table width="98%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="32" background="/images/whatsnew/notice_bg.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="60" align="center"><img src="/images/whatsnew/notice_txt01.gif" width="17" height="11"></td>
                      <td width="5"><img src="/images/whatsnew/notice_line.gif" width="5" height="12"></td>
                      <td align="center"><img src="/images/mypage/txt20.gif" width="38" height="11"></td>
                      <td width="5" align="center"><img src="/images/whatsnew/notice_line.gif" width="5" height="12"></td>
                      <td width="150" align="center"><img src="/images/mypage/txt21.gif" width="27" height="11"></td>
                      </tr>
                  </table></td>
                </tr>
              </table>
              <!--리스트 -->
              <table border='1' cellpadding='0' cellspacing='0' width='98%' style='border-collapse:collapse' bordercolor='#f5f5f5' frame='void'>
<%for ( int i = 0; i < CardList.Count; i ++ ) { %>
                <tr>
                  <td height="32"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="60" align="center"><span class="gray_sbold"><%= i + 1 + ( ( PageNo - 1 ) * PageSize ) %></span></td>
                      <td width="5"><img src="/images/common/clear.gif" width="1" height="1"></td>
                      <td align="center"><span class="menu_stit_gray"><a href="/mypage/card_info.aspx?cardno=<%=Server.UrlEncode(CardList[i].CardNo) %>"><%=CardList[i].CardNo %></a></span></td>
                      <td width="5" align="center"><img src="/images/common/clear.gif" width="1" height="1"></td>
                      <td width="150" align="center"><span class="small_gray"><%=CardList[i].CreateDate.ToString("yyyy-MM-dd") %></span></td>
                      </tr>
                  </table></td>
                </tr>
<% } %>
                <tr>
                  <td height='2' bgcolor='#f5f5f5'></td>
                </tr>
              </table>
              <!--리스트 끝 -->
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="25">&nbsp;</td>
                </tr>
                <tr>
                  <td height="35" align="center"><UC:Paging ID="UC_Paging" runat="server" /></td>
                </tr>
              </table>

              <!--리스트 끝 --></td>
          </tr>
        </table>

</asp:Content>
